<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditHdTicketsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_codTicket}" for="codTicket" />
                    <h:inputText id="codTicket" value="#{hdTicketsController.selected.codTicket}" title="#{bundle.EditHdTicketsTitle_codTicket}" required="true" requiredMessage="#{bundle.EditHdTicketsRequiredMessage_codTicket}"/>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_descTicket}" for="descTicket" />
                    <h:inputText id="descTicket" value="#{hdTicketsController.selected.descTicket}" title="#{bundle.EditHdTicketsTitle_descTicket}" />
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_fecResolucion}" for="fecResolucion" />
                    <h:inputText id="fecResolucion" value="#{hdTicketsController.selected.fecResolucion}" title="#{bundle.EditHdTicketsTitle_fecResolucion}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_fecResolucionReal}" for="fecResolucionReal" />
                    <h:inputText id="fecResolucionReal" value="#{hdTicketsController.selected.fecResolucionReal}" title="#{bundle.EditHdTicketsTitle_fecResolucionReal}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_fecRegistro}" for="fecRegistro" />
                    <h:inputText id="fecRegistro" value="#{hdTicketsController.selected.fecRegistro}" title="#{bundle.EditHdTicketsTitle_fecRegistro}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_codSolicitante}" for="codSolicitante" />
                    <h:selectOneMenu id="codSolicitante" value="#{hdTicketsController.selected.codSolicitante}" title="#{bundle.EditHdTicketsTitle_codSolicitante}" >
                        <f:selectItems value="#{hdUsuariosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_codAsesor}" for="codAsesor" />
                    <h:selectOneMenu id="codAsesor" value="#{hdTicketsController.selected.codAsesor}" title="#{bundle.EditHdTicketsTitle_codAsesor}" >
                        <f:selectItems value="#{hdAsesorController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_codEstado}" for="codEstado" />
                    <h:selectOneMenu id="codEstado" value="#{hdTicketsController.selected.codEstado}" title="#{bundle.EditHdTicketsTitle_codEstado}" >
                        <f:selectItems value="#{hdEstadosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditHdTicketsLabel_codNivel3}" for="codNivel3" />
                    <h:selectOneMenu id="codNivel3" value="#{hdTicketsController.selected.codNivel3}" title="#{bundle.EditHdTicketsTitle_codNivel3}" >
                        <f:selectItems value="#{hdClasificacionBajaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{hdTicketsController.update}" value="#{bundle.EditHdTicketsSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditHdTicketsViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{hdTicketsController.prepareList}" value="#{bundle.EditHdTicketsShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditHdTicketsIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
